package com.barneyx.mshinfoplatform.entity.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.barneyx.mshinfoplatform.entity.CommonEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableCharset;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableEngine;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlCharsetConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlEngineConstant;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("msh_admin_role_permission_map_list")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("管理员表-信息平台区域负责人映射表")
@TableCharset(MySqlCharsetConstant.UTF8)
@TableEngine(MySqlEngineConstant.InnoDB)
@Builder
public class AdminRolePermissionMapEntity extends CommonEntity {
    @TableId(value = "admin_role_permission_map_id", type = IdType.ASSIGN_ID)
    @Column(type = MySqlTypeConstant.BIGINT)
    private String AdminRolePermissionMapId;

    @TableField("role_id")
    @Column(type = MySqlTypeConstant.BIGINT)
    private String RoleId;

    @TableField("permission_id")
    @Column(type = MySqlTypeConstant.BIGINT)
    private String PermissionId;
}
